<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>文字居中</title>
  <style>
    h1 {
      font-size: 24px;
      font-family: Arial, Helvetica, sans-serif;
      text-edge: cap alphabetic;
      leading-trim: both;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>11111111jjjjjjjjjgggggggggppppppyyyyyqqqqQQQQ</h1>
  </div>
</body>
</html>